<?php
include 'const.php';

//panduanshouji
if (isset($_GET['tel'])) { //判断前端是否传递锅来了数据
    $tel = $_GET['tel']; //获取数据储存
    // echo $tel;
    $telname = $const->query("SELECT * FROM registry_login WHERE tel='$tel' ");

    //重复name
    if ($telname->fetch_assoc()) {
        echo 'yesName';
    } else {
        echo 'errName';
    }
}
